package cn.luyou.admin.service;

import cn.luyou.admin.dto.GeneratePaperDTO;
import cn.luyou.admin.entity.ExamPaper;
import cn.luyou.admin.entity.Question;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface ExamPaperService extends IService<ExamPaper> {
    
    IPage<ExamPaper> getPapers(Integer pageNum, Integer pageSize, String keyword);
    
    ExamPaper generatePaper(GeneratePaperDTO generatePaperDTO, Long userId);
    
    void updatePaper(ExamPaper paper);
    
    void deletePaper(Long id);
    
    void updateStatus(Long id, Integer status);
    
    List<Question> getPaperQuestions(Long paperId);
} 